#!/usr/bin/env node


const Koa=require('koa'),
      logger=require('koa-logger');

const task=require('./lib/task');

const app=new Koa();

app.use(logger());

app.use(async (ctx,next)=>{
  ctx.body='hello koa cost:'+await task()+'ms';
})

app.listen(8080);




